<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{{include file="./libs/page_head.htm"}}
<script>
$(function(){
	
	Main.tagDiv('.stroeinformation');
	$(".gal").colorbox({rel:'gal'});
})
</script>
</head>
<body>
{{include file="./libs/page_top.htm"}}
<div id="maincon">
  <div id="auto">
    <div id="conbo">
      <div class="left maingoods">
        <div class="stroeinformation">
          <div class="xiugai">{{if $is_cat_admin}}<a href="main.php?act=goods_edit&goods_id={{$goods.goods_id}}">修改方案</a>{{/if}} </div>
          <div class="goodtop">
            <div class="touxinfo">
              <dl>
                <dt><a href="{{$goods.gallery.0.img_original}}" id="original_a" class="gal"><img src="{{$goods.gallery.0.img_original}}" width="100%" height="300" id="original"></a></dt>
                {{foreach from=$goods.gallery item=list key=key}}
                <dd ><a href="{{$list.img_original}}" class="gal"><img src="{{$list.img_original}}" width="60" height="60" onmouseover="$('#original').attr({'src':this.src});$('#original_a').attr({'href':this.src})"></a></dd>
                {{/foreach}}
              </dl>
            </div>
            <!--touxinfo end-->
            <div class="kankangood">
              <h4>{{$goods.goods_name}}</h4>
              <h5><a href="category.php?cat_id={{$goods.cat_id}}" target="_blank"  class="width5" title="{{$goods.style_name|replace:' 小店':''}}" >{{$goods.style_name|replace:' 小店':''}}</a> <a class="label label-success" href="category.php?cat_id={{$goods.cat_id}}" style="color:#fff !important">进入店铺</a>
             
                {{if $isWished}}
               	<a  title="已关注" class="label label-danger 	" style="color:#fff !important">已关注</a>
                {{else}}
                  <a  title="马上关注" class="label label-default 	" style="color:#fff !important" href="main.php?act=addwish&type=1&id={{$goods.goods_id}}">马上关注</a>
                  
                {{/if}}
               
               {{if $goods.cat_type==1}}
             <span onclick="Main.addZan({{$goods.goods_id}},'3','{{$session.oauser}}')" class="zan pointer zan_{{$goods.goods_id}} label label-primary" style="font-size:14px" >投资数 <strong>{{$goods.zan}}</strong> </span>
              {{else}}
              
            
               {{/if}}
              </h5>
              <dl class="priceinfo">
                <dt>售价</dt>
                <dd class="size1"><em>{{$goods.shop_priced}}</em> 青币</dd>
                <dd class="colora"><span>投产成本</span>{{$goods.market_priced}}</dd>
                <dd class="colora"><span>上架时间</span>{{$goods.add_time}}</dd>
                <dd class="xiaoliang"><a href="#"><span class="colornm"><strong>销售量</strong> {{$goods.goods_number}}</span> <span><em class="marginle label label-warning" title="全站排名">{{$goods.rank.goods_number}}</em></span></a></dd>
              </dl>
              <ul class="numbercount">
                <!--<li class="active border-ri"><a href="#"><span class="colornm"><strong>下载量</strong> {{$goods.download}}</span> <span><em class="marginle label label-warning" title="全站排名">{{$goods.rank.download}}</em></span></a></li>-->
                <li class="active border-ri"><dl><dt>好评度</dt> 
                <dd>{{$per_haop = $goods.haoping/($goods.h.h3+$goods.h.h2+$goods.h.h1)}}
                {{if $per_haop}}{{round($per_haop)}}{{else}}60{{/if}} % </dd>
                <dd class="paimc">全站排名 {{$goods.rank.haoping}}</dd></dl></li>
                
                
                <li class="tuibox">
                
                    <div class="tuiguang">
                        <div  class="pull-left tg "> <span class="label label-success">好评 {{$goods.h.h3}} 次</span><span class="label label-warning">中评     {{$goods.h.h2}} 次</span><span class="label label-danger">差评
 {{$goods.h.h1}} 次</span> </div>
                    </div>
                
                
                </li>
                <!--<li><a href="#"><span class="colornm"><strong>点击量</strong> {{$goods.click_count}}</span> <span><em class="marginle label label-warning" title="全站排名">{{$goods.rank.click_count}}</em></span></a></li>-->
              </ul>
              
              
              <div class="description" title="{{$goods.goods_desc}}"> 简要描述 :{{$goods.goods_desc|truncate:150:'......'}} </div>
              {{if $goods.descs}}
              <div class="pull-left buyidea">
              购买该产品你将获得：{{$goods.descs|replace:",":"、"}}
              </div>
             <div class="pull-left buyidea">
              关键词：{{$goods.keywords|replace:",":"、"}}
              </div>
              {{/if}}
              {{*积分商城的按钮*}}
              
              {{if $goods.cat_id==$smarty.const.JF_MALL_ID}}
              {{$btn='积分兑换'}}
              {{else}}
              {{$btn='立即购买'}}
              {{/if}}
              
              {{$user=$session.user_info}}
              {{if $user_is_ordered}}
              {{$o=$user_is_ordered}} <a class="downbuy_no_text" href="main.php?act=download&goods_id={{$o.goods_id}}&o_id={{$o.order_id}}" target="_blank">立即下载</a> 
                  {{if $user_is_ordered.review_id}}
                    <a class="downbuy_no_text pointer hide" onclick="Main.popupBox('main.php?act=order_review&no_style=1&o_id={{$user_is_ordered.order_id}}&goods_id={{$goods.goods_id}}&r_id={{$user_is_ordered.review_id}}')">修改评价</a>
                  {{else}}
                  <a class="downbuy_no_text pointer" onclick="Main.popupBox('main.php?act=order_review&no_style=1&o_id={{$user_is_ordered.order_id}}&goods_id={{$goods.goods_id}}')">追加评价</a>
                  {{/if}}
              {{else}}
              
              {{if $user && $user.cat_id!=$goods.cat_id}}
              
              {{if $user.status}}
              <input type="button" value="{{$btn}}" class="downbuy_no_text" onclick="Cart.addToCart('{{$goods.goods_id}}','','goods')"/>
              {{else}} <a  class="downbuy_no_text" href="main.php?act=user_valid">请验证用户名</a> {{/if}}
              {{else}} <a  class="downbuy_no_text" href="main.php?act=user_login">立即购买</a> {{/if}}
              {{/if}} 
              <!-- <input class="downbuy" type="button"/>--> 
        
              <div class="zdy_pic" style="display:none; text-align:center">{{if $goods.zdy_pic}}<img src="{{$goods.zdy_pic}}"  height="800"/>{{else}}<strong> 该项目的定义表暂时还没有上传，如果对项目不是很放心，可以等两天再来投资哟~</strong>{{/if}}<br /><br /><a class="btn btn-primary" onclick="Main.addZan({{$goods.goods_id}},'3','{{$session.oauser}}')">确认投资</a></div>
               {{if $goods.cat_type==1}}
               <a class="downbuy_no_text pointer" onclick="Main.popupBox('.zdy_pic','',true)">我要投资</a>
               {{/if}}
             
            </div>
            <!--kankangood end--> 
          </div>
          
        </div>
        <!--stroeinformation end-->
        
        <div align="center" class="box"> </div>
        <!--center end-->
        <div class="goodreview">
          <div class="haoping"> </div>
          <div class="f_left ts6 hide"></div>
          {{if ($goods.h.h3+$goods.h.h2+$goods.h.h1)>=1}}
          <iframe src="main.php?act=order_review_list&goods_id={{$goods.goods_id}}" width="100%" height="500" frameborder="0"></iframe>
          {{/if}} </div>
      </div>
      <!--left end--> 
      
    </div>
    <!--conbo end--> 
  </div>
  <!--auto end--> 
  
</div>
<!--maincon end--> 

{{include file="./libs/page_footer.htm"}} 
<!--footercon end-->

</body>
</html>
